package com.gupao.study.composite;

import lombok.Data;

@Data
public class Monomer extends Component {
    private String name;
    public Monomer(String name){
        this.name = name;
    }

    public void print() {
        System.out.println(name);
    }
}
